-
Notifications
You must be signed in to change notification settings - Fork 909
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Issue 6470: Preserve Space after colon if followed by absolute path declaration (::) #6475
base: master
Are you sure you want to change the base?
Fix Issue 6470: Preserve Space after colon if followed by absolute path declaration (::) #6475
Conversation
src/items.rs
Outdated
result.push_str(colon_spaces(context.config)); | ||
result.push_str(colon_spaces(context.config, false)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you explain why we can pass false
here? It would also be helpful if you could add an explanation to the other call sites where you've passed false
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another cases that we should test:
fn func<T: ::some::Trait>(x: T) {}
Close #6470